@celljs/ta 4.6.1 → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +112 -0
- package/README.md +15 -2
- package/dist/cli.mjs +168 -110
- package/dist/pi/CHANGELOG.md +36 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/README.en.md +68 -0
- package/dist/pi/packages/ta-agents/README.md +68 -0
- package/dist/pi/packages/ta-agents/extension/index.mjs +1746 -0
- package/dist/pi/packages/ta-agents/fixtures/fake-acp-agent.mjs +183 -0
- package/dist/pi/packages/ta-agents/lib/acp-agent.d.ts +52 -0
- package/dist/pi/packages/ta-agents/lib/acp-agent.d.ts.map +1 -0
- package/dist/pi/packages/ta-agents/lib/acp-agent.js +218 -0
- package/dist/pi/packages/ta-agents/lib/acp-agent.js.map +1 -0
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +153 -0
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts.map +1 -0
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +45 -0
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js.map +1 -0
- package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts +45 -0
- package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts.map +1 -0
- package/dist/pi/packages/ta-agents/lib/agent-bindings.js +135 -0
- package/dist/pi/packages/ta-agents/lib/agent-bindings.js.map +1 -0
- package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts +50 -0
- package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts.map +1 -0
- package/dist/pi/packages/ta-agents/lib/agent-catalog.js +143 -0
- package/dist/pi/packages/ta-agents/lib/agent-catalog.js.map +1 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +18 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts.map +1 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +86 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js.map +1 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +71 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts.map +1 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.js +215 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.js.map +1 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.d.ts +41 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.d.ts.map +1 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +163 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js.map +1 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.d.ts +22 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.d.ts.map +1 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.js +88 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.js.map +1 -0
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +115 -0
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts.map +1 -0
- package/dist/pi/packages/ta-agents/lib/agent-turn.js +343 -0
- package/dist/pi/packages/ta-agents/lib/agent-turn.js.map +1 -0
- package/dist/pi/packages/ta-agents/lib/extension.d.ts +26 -0
- package/dist/pi/packages/ta-agents/lib/extension.d.ts.map +1 -0
- package/dist/pi/packages/ta-agents/lib/extension.js +247 -0
- package/dist/pi/packages/ta-agents/lib/extension.js.map +1 -0
- package/dist/pi/packages/ta-agents/lib/json-rpc.d.ts +41 -0
- package/dist/pi/packages/ta-agents/lib/json-rpc.d.ts.map +1 -0
- package/dist/pi/packages/ta-agents/lib/json-rpc.js +145 -0
- package/dist/pi/packages/ta-agents/lib/json-rpc.js.map +1 -0
- package/dist/pi/packages/ta-agents/lib/message-stream.d.ts +31 -0
- package/dist/pi/packages/ta-agents/lib/message-stream.d.ts.map +1 -0
- package/dist/pi/packages/ta-agents/lib/message-stream.js +134 -0
- package/dist/pi/packages/ta-agents/lib/message-stream.js.map +1 -0
- package/dist/pi/packages/ta-agents/lib/pi-types.d.ts +20 -0
- package/dist/pi/packages/ta-agents/lib/pi-types.d.ts.map +1 -0
- package/dist/pi/packages/ta-agents/lib/pi-types.js +3 -0
- package/dist/pi/packages/ta-agents/lib/pi-types.js.map +1 -0
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +36 -0
- package/dist/pi/packages/ta-agents/lib/texts.d.ts.map +1 -0
- package/dist/pi/packages/ta-agents/lib/texts.js +43 -0
- package/dist/pi/packages/ta-agents/lib/texts.js.map +1 -0
- package/dist/pi/packages/ta-agents/package.json +53 -0
- package/dist/pi/packages/ta-changes/README.en.md +21 -0
- package/dist/pi/packages/ta-changes/README.md +21 -0
- package/dist/pi/packages/ta-changes/extension/index.mjs +296 -0
- package/dist/pi/packages/ta-changes/host/index.mjs +309 -0
- package/dist/pi/packages/ta-changes/lib/blob-store.d.ts +16 -0
- package/dist/pi/packages/ta-changes/lib/blob-store.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/blob-store.js +69 -0
- package/dist/pi/packages/ta-changes/lib/blob-store.js.map +1 -0
- package/dist/pi/packages/ta-changes/lib/card.d.ts +12 -0
- package/dist/pi/packages/ta-changes/lib/card.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/card.js +149 -0
- package/dist/pi/packages/ta-changes/lib/card.js.map +1 -0
- package/dist/pi/packages/ta-changes/lib/changes-protocol.d.ts +76 -0
- package/dist/pi/packages/ta-changes/lib/changes-protocol.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/changes-protocol.js +20 -0
- package/dist/pi/packages/ta-changes/lib/changes-protocol.js.map +1 -0
- package/dist/pi/packages/ta-changes/lib/changes-service.d.ts +20 -0
- package/dist/pi/packages/ta-changes/lib/changes-service.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/changes-service.js +70 -0
- package/dist/pi/packages/ta-changes/lib/changes-service.js.map +1 -0
- package/dist/pi/packages/ta-changes/lib/changes-util.d.ts +21 -0
- package/dist/pi/packages/ta-changes/lib/changes-util.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/changes-util.js +44 -0
- package/dist/pi/packages/ta-changes/lib/changes-util.js.map +1 -0
- package/dist/pi/packages/ta-changes/lib/diff-tab.d.ts +4 -0
- package/dist/pi/packages/ta-changes/lib/diff-tab.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/diff-tab.js +45 -0
- package/dist/pi/packages/ta-changes/lib/diff-tab.js.map +1 -0
- package/dist/pi/packages/ta-changes/lib/extension.d.ts +21 -0
- package/dist/pi/packages/ta-changes/lib/extension.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/extension.js +106 -0
- package/dist/pi/packages/ta-changes/lib/extension.js.map +1 -0
- package/dist/pi/packages/ta-changes/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-changes/lib/host.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/host.js +16 -0
- package/dist/pi/packages/ta-changes/lib/host.js.map +1 -0
- package/dist/pi/packages/ta-changes/lib/i18n.d.ts +30 -0
- package/dist/pi/packages/ta-changes/lib/i18n.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/i18n.js +61 -0
- package/dist/pi/packages/ta-changes/lib/i18n.js.map +1 -0
- package/dist/pi/packages/ta-changes/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-changes/lib/index.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/index.js +28 -0
- package/dist/pi/packages/ta-changes/lib/index.js.map +1 -0
- package/dist/pi/packages/ta-changes/lib/line-diff.d.ts +11 -0
- package/dist/pi/packages/ta-changes/lib/line-diff.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/line-diff.js +69 -0
- package/dist/pi/packages/ta-changes/lib/line-diff.js.map +1 -0
- package/dist/pi/packages/ta-changes/lib/page.d.ts +29 -0
- package/dist/pi/packages/ta-changes/lib/page.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/page.js +106 -0
- package/dist/pi/packages/ta-changes/lib/page.js.map +1 -0
- package/dist/pi/packages/ta-changes/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-changes/lib/react.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/react.js +8 -0
- package/dist/pi/packages/ta-changes/lib/react.js.map +1 -0
- package/dist/pi/packages/ta-changes/lib/recorder.d.ts +25 -0
- package/dist/pi/packages/ta-changes/lib/recorder.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/recorder.js +117 -0
- package/dist/pi/packages/ta-changes/lib/recorder.js.map +1 -0
- package/dist/pi/packages/ta-changes/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-changes/lib/style.d.ts.map +1 -0
- package/dist/pi/packages/ta-changes/lib/style.js +44 -0
- package/dist/pi/packages/ta-changes/lib/style.js.map +1 -0
- package/dist/pi/packages/ta-changes/package.json +46 -0
- package/dist/pi/packages/ta-changes/web/index.js +460 -0
- package/dist/pi/packages/ta-channels/README.en.md +48 -0
- package/dist/pi/packages/ta-channels/README.md +1 -1
- package/dist/pi/packages/ta-channels/extension/index.mjs +8 -4
- package/dist/pi/packages/ta-channels/host/index.mjs +22 -3
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +4 -1
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts.map +1 -1
- package/dist/pi/packages/ta-channels/lib/channels-model.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +2 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts.map +1 -1
- package/dist/pi/packages/ta-channels/lib/channels-util.js +6 -1
- package/dist/pi/packages/ta-channels/lib/channels-util.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/channels.js +1 -1
- package/dist/pi/packages/ta-channels/lib/channels.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/extension.d.ts +2 -2
- package/dist/pi/packages/ta-channels/lib/extension.d.ts.map +1 -1
- package/dist/pi/packages/ta-channels/lib/extension.js +2 -2
- package/dist/pi/packages/ta-channels/lib/extension.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/sidebar.d.ts.map +1 -1
- package/dist/pi/packages/ta-channels/lib/sidebar.js +4 -2
- package/dist/pi/packages/ta-channels/lib/sidebar.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.d.ts.map +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +1 -0
- package/dist/pi/packages/ta-channels/lib/style.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/team-tools.js +1 -1
- package/dist/pi/packages/ta-channels/lib/team-tools.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/team.d.ts +7 -1
- package/dist/pi/packages/ta-channels/lib/team.d.ts.map +1 -1
- package/dist/pi/packages/ta-channels/lib/team.js +25 -2
- package/dist/pi/packages/ta-channels/lib/team.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/views.d.ts +3 -1
- package/dist/pi/packages/ta-channels/lib/views.d.ts.map +1 -1
- package/dist/pi/packages/ta-channels/lib/views.js +12 -1
- package/dist/pi/packages/ta-channels/lib/views.js.map +1 -1
- package/dist/pi/packages/ta-channels/package.json +1 -1
- package/dist/pi/packages/ta-channels/web/index.js +23 -5
- package/dist/pi/packages/ta-computer-use/README.en.md +37 -0
- package/dist/pi/packages/ta-computer-use/README.md +37 -0
- package/dist/pi/packages/ta-computer-use/extension/index.mjs +551 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.d.ts +72 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.d.ts.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.js +149 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.js.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-daemon.d.ts +78 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-daemon.d.ts.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-daemon.js +250 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-daemon.js.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver.d.ts +56 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver.d.ts.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver.js +112 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver.js.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/extension.d.ts +39 -0
- package/dist/pi/packages/ta-computer-use/lib/extension.d.ts.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/extension.js +174 -0
- package/dist/pi/packages/ta-computer-use/lib/extension.js.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/pi-types.d.ts +3 -0
- package/dist/pi/packages/ta-computer-use/lib/pi-types.d.ts.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/pi-types.js +3 -0
- package/dist/pi/packages/ta-computer-use/lib/pi-types.js.map +1 -0
- package/dist/pi/packages/ta-computer-use/package.json +51 -0
- package/dist/pi/packages/ta-cron/README.en.md +48 -0
- package/dist/pi/packages/ta-cron/README.md +48 -0
- package/dist/pi/packages/ta-cron/extension/index.mjs +856 -0
- package/dist/pi/packages/ta-cron/host/index.mjs +877 -0
- package/dist/pi/packages/ta-cron/lib/commands.d.ts +61 -0
- package/dist/pi/packages/ta-cron/lib/commands.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/commands.js +250 -0
- package/dist/pi/packages/ta-cron/lib/commands.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/cron-expression.d.ts +39 -0
- package/dist/pi/packages/ta-cron/lib/cron-expression.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/cron-expression.js +146 -0
- package/dist/pi/packages/ta-cron/lib/cron-expression.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/cron-protocol.d.ts +160 -0
- package/dist/pi/packages/ta-cron/lib/cron-protocol.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/cron-protocol.js +38 -0
- package/dist/pi/packages/ta-cron/lib/cron-protocol.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/editor.d.ts +17 -0
- package/dist/pi/packages/ta-cron/lib/editor.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/editor.js +145 -0
- package/dist/pi/packages/ta-cron/lib/editor.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/extension.d.ts +27 -0
- package/dist/pi/packages/ta-cron/lib/extension.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/extension.js +142 -0
- package/dist/pi/packages/ta-cron/lib/extension.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/form-util.d.ts +39 -0
- package/dist/pi/packages/ta-cron/lib/form-util.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/form-util.js +121 -0
- package/dist/pi/packages/ta-cron/lib/form-util.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-cron/lib/host.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/host.js +14 -0
- package/dist/pi/packages/ta-cron/lib/host.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +90 -0
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/i18n.js +177 -0
- package/dist/pi/packages/ta-cron/lib/i18n.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-cron/lib/index.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/index.js +37 -0
- package/dist/pi/packages/ta-cron/lib/index.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/model-picker.d.ts +33 -0
- package/dist/pi/packages/ta-cron/lib/model-picker.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/model-picker.js +178 -0
- package/dist/pi/packages/ta-cron/lib/model-picker.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/notifier.d.ts +6 -0
- package/dist/pi/packages/ta-cron/lib/notifier.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/notifier.js +50 -0
- package/dist/pi/packages/ta-cron/lib/notifier.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/page.d.ts +39 -0
- package/dist/pi/packages/ta-cron/lib/page.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/page.js +113 -0
- package/dist/pi/packages/ta-cron/lib/page.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-cron/lib/react.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/react.js +8 -0
- package/dist/pi/packages/ta-cron/lib/react.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/reply.d.ts +6 -0
- package/dist/pi/packages/ta-cron/lib/reply.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/reply.js +53 -0
- package/dist/pi/packages/ta-cron/lib/reply.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/schedule-util.d.ts +25 -0
- package/dist/pi/packages/ta-cron/lib/schedule-util.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/schedule-util.js +223 -0
- package/dist/pi/packages/ta-cron/lib/schedule-util.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/scheduler.d.ts +76 -0
- package/dist/pi/packages/ta-cron/lib/scheduler.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/scheduler.js +319 -0
- package/dist/pi/packages/ta-cron/lib/scheduler.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/server-texts.d.ts +7 -0
- package/dist/pi/packages/ta-cron/lib/server-texts.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/server-texts.js +24 -0
- package/dist/pi/packages/ta-cron/lib/server-texts.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-cron/lib/style.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/style.js +137 -0
- package/dist/pi/packages/ta-cron/lib/style.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/task-store.d.ts +25 -0
- package/dist/pi/packages/ta-cron/lib/task-store.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/task-store.js +60 -0
- package/dist/pi/packages/ta-cron/lib/task-store.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +18 -0
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js +167 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.d.ts +6 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +189 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.js.map +1 -0
- package/dist/pi/packages/ta-cron/lib/tool.d.ts +85 -0
- package/dist/pi/packages/ta-cron/lib/tool.d.ts.map +1 -0
- package/dist/pi/packages/ta-cron/lib/tool.js +127 -0
- package/dist/pi/packages/ta-cron/lib/tool.js.map +1 -0
- package/dist/pi/packages/ta-cron/package.json +46 -0
- package/dist/pi/packages/ta-cron/web/index.js +1985 -0
- package/dist/pi/packages/ta-extensions/README.en.md +27 -0
- package/dist/pi/packages/ta-extensions/README.md +10 -3
- package/dist/pi/packages/ta-extensions/host/index.mjs +331 -1
- package/dist/pi/packages/ta-extensions/lib/actions.d.ts +5 -1
- package/dist/pi/packages/ta-extensions/lib/actions.d.ts.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/actions.js +20 -1
- package/dist/pi/packages/ta-extensions/lib/actions.js.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/context.d.ts +20 -0
- package/dist/pi/packages/ta-extensions/lib/context.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/context.js +8 -0
- package/dist/pi/packages/ta-extensions/lib/context.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/host.d.ts +8 -2
- package/dist/pi/packages/ta-extensions/lib/host.d.ts.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/host.js +11 -2
- package/dist/pi/packages/ta-extensions/lib/host.js.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +32 -0
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/i18n.js +78 -2
- package/dist/pi/packages/ta-extensions/lib/i18n.js.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/index.d.ts +2 -1
- package/dist/pi/packages/ta-extensions/lib/index.d.ts.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/index.js +25 -21
- package/dist/pi/packages/ta-extensions/lib/index.js.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/market-detail.d.ts +12 -0
- package/dist/pi/packages/ta-extensions/lib/market-detail.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-detail.js +95 -0
- package/dist/pi/packages/ta-extensions/lib/market-detail.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-parts.d.ts +33 -0
- package/dist/pi/packages/ta-extensions/lib/market-parts.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-parts.js +56 -0
- package/dist/pi/packages/ta-extensions/lib/market-parts.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-store.d.ts +41 -0
- package/dist/pi/packages/ta-extensions/lib/market-store.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-store.js +99 -0
- package/dist/pi/packages/ta-extensions/lib/market-store.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-style.d.ts +3 -0
- package/dist/pi/packages/ta-extensions/lib/market-style.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-style.js +98 -0
- package/dist/pi/packages/ta-extensions/lib/market-style.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-util.d.ts +74 -0
- package/dist/pi/packages/ta-extensions/lib/market-util.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-util.js +193 -0
- package/dist/pi/packages/ta-extensions/lib/market-util.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-view.d.ts +9 -0
- package/dist/pi/packages/ta-extensions/lib/market-view.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-view.js +144 -0
- package/dist/pi/packages/ta-extensions/lib/market-view.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market.d.ts +88 -0
- package/dist/pi/packages/ta-extensions/lib/market.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market.js +198 -0
- package/dist/pi/packages/ta-extensions/lib/market.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/page.d.ts +3 -16
- package/dist/pi/packages/ta-extensions/lib/page.d.ts.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/page.js +87 -58
- package/dist/pi/packages/ta-extensions/lib/page.js.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/signal.d.ts +12 -0
- package/dist/pi/packages/ta-extensions/lib/signal.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/signal.js +32 -0
- package/dist/pi/packages/ta-extensions/lib/signal.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.d.ts.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.js +3 -2
- package/dist/pi/packages/ta-extensions/lib/style.js.map +1 -1
- package/dist/pi/packages/ta-extensions/package.json +1 -1
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +3 -2
- package/dist/pi/packages/ta-extensions/web/index.js +937 -54
- package/dist/pi/packages/ta-workspace/README.md +5 -5
- package/dist/pi/packages/ta-workspace/README.zh-cn.md +29 -0
- package/dist/pi/packages/ta-workspace/lib/browser-agent.d.ts +36 -0
- package/dist/pi/packages/ta-workspace/lib/browser-agent.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/browser-agent.js +396 -0
- package/dist/pi/packages/ta-workspace/lib/browser-agent.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/browser-common.d.ts +48 -0
- package/dist/pi/packages/ta-workspace/lib/browser-common.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/browser-common.js +180 -0
- package/dist/pi/packages/ta-workspace/lib/browser-common.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/browser-import.d.ts +5 -0
- package/dist/pi/packages/ta-workspace/lib/browser-import.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/browser-import.js +97 -0
- package/dist/pi/packages/ta-workspace/lib/browser-import.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/browser-webview.d.ts +7 -0
- package/dist/pi/packages/ta-workspace/lib/browser-webview.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/browser-webview.js +202 -0
- package/dist/pi/packages/ta-workspace/lib/browser-webview.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/browser.d.ts +1 -7
- package/dist/pi/packages/ta-workspace/lib/browser.d.ts.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/browser.js +14 -130
- package/dist/pi/packages/ta-workspace/lib/browser.js.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/explorer.d.ts.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/explorer.js +214 -3
- package/dist/pi/packages/ta-workspace/lib/explorer.js.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +37 -0
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/i18n.js +76 -2
- package/dist/pi/packages/ta-workspace/lib/i18n.js.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/index.d.ts.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/index.js +7 -1
- package/dist/pi/packages/ta-workspace/lib/index.js.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.d.ts.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.js +35 -6
- package/dist/pi/packages/ta-workspace/lib/style.js.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/terminal.d.ts +2 -2
- package/dist/pi/packages/ta-workspace/lib/terminal.d.ts.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/terminal.js +50 -104
- package/dist/pi/packages/ta-workspace/lib/terminal.js.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/util/browser-snapshot.d.ts +52 -0
- package/dist/pi/packages/ta-workspace/lib/util/browser-snapshot.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/browser-snapshot.js +207 -0
- package/dist/pi/packages/ta-workspace/lib/util/browser-snapshot.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/upload.d.ts +34 -0
- package/dist/pi/packages/ta-workspace/lib/util/upload.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/upload.js +109 -0
- package/dist/pi/packages/ta-workspace/lib/util/upload.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts +20 -0
- package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/util/workspace.js +67 -0
- package/dist/pi/packages/ta-workspace/lib/util/workspace.js.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/util/zip.d.ts +20 -0
- package/dist/pi/packages/ta-workspace/lib/util/zip.d.ts.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/util/zip.js +128 -0
- package/dist/pi/packages/ta-workspace/lib/util/zip.js.map +1 -0
- package/dist/pi/packages/ta-workspace/lib/workspace-client.d.ts +12 -1
- package/dist/pi/packages/ta-workspace/lib/workspace-client.d.ts.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/workspace-client.js +101 -0
- package/dist/pi/packages/ta-workspace/lib/workspace-client.js.map +1 -1
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +1955 -637
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-3_0FZVeo.js → abnfDiagram-S7VZAUFO-CNqfsCwx.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-BX-N-_gd.js → architecture-WOLXFQ4H-_WaGq-Qk.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-Daeu1xjI.js → architectureDiagram-YGSQEFNW-Bn63Lctu.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-DjJS8902.js → blockDiagram-APKKGZFW-BGaAecnk.js} +1 -1
- package/dist/public/assets/{browser-DZ1aJcgd.js → browser-DKagIN4Y.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-mKfHFqh9.js → c4Diagram-KJ2TOQU5-CK9Z_9Zp.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-Cnx7dsB1.js → chunk-6MUBBAK2-H3j3MGva.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-g4Y7Pg2t.js → chunk-AXFCVDMN-Beljdjs9.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-QNE6A_Vg.js → chunk-BG4553SI-TYEV5wLO.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-DPHr08r0.js → chunk-DQASFODM-gmWJrizf.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-CenkxHlV.js → chunk-HFQBQIA3-BTa7yKXI.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-C3Z8V8R_.js → chunk-KQLB2F66-BlwMm4R0.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-BbUyxMWY.js → chunk-KS47KZWR-CKTXjzwD.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-CKECy4cp.js → chunk-LEVMRMFU-Bn9Xkefl.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-DuZd8RGI.js → chunk-M57EVK23-B_QLqohG.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-DatO2fu-.js → chunk-OY52VR5R-BflzJHPz.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-11782Ox2.js → chunk-QB3YPZ4I-BXucfaFg.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-CCTi2rHV.js → chunk-R3KSYZAL-CGwkwxm9.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DU6EHCIH.js → chunk-STOXU5M4-DQGOPuM5.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-BtgGljqq.js → chunk-TU62E6Q5-BCrs6AYI.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-Dd_Qy0Gx.js → chunk-X4PVCEUW-MTv7nXJX.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-DjOrWHxV.js → chunk-XXDRQBXY-fPaX8VIb.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-KfN1--CA.js → classDiagram-v2-L25IHNXF-tm4uT08q.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-BuWVQ5UC.js → cose-bilkent-JH36ORCC-Dkk3pDZj.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-D_QV_BJg.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-BKljxAVP.js → cynefinDiagram-L36ESFBY-BcoArW00.js} +1 -1
- package/dist/public/assets/{d3-selection-CtCbiJ-r.js → d3-selection-BzUITLov.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-nD3f86OL.js → dagre-SPEB5RXH-oiU-wJxw.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-wSVpHF4f.js → diagram-3B7GL73J-BwlCOIW4.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-BOkeaSpr.js → diagram-DNEMPZML-CZGQiFrl.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-CRCErdiz.js → diagram-L3MUGCDN-BJGDa24C.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-y5kaOsii.js → diagram-LA4NIPWU-DdwHRhnP.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-D7l7ybij.js → diagram-MHCOC4E2-IjreLUB9.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-kHzV_Ibv.js → diagram-XPFHEONP-CvaG0Zzq.js} +1 -1
- package/dist/public/assets/{dist-B-aKVhGg.js → dist-Cm4zqoMA.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-BX_-WdHG.js → ebnfDiagram-UZSYDL2S-C-FOI67M.js} +1 -1
- package/dist/public/assets/{editor.api-Dwz0wCaW.js → editor.api-hteKufWf.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-YaOVo5bZ.js → elk-XV6XMXQE-C_ClfkLy.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-BXQPjKDV.js → erDiagram-EYBAPDEH-DSr0aRYm.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-SiGVyftr.js → eventmodeling-K75KTNOO-COU_atV6.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-QGLBPpjQ.js +1 -0
- package/dist/public/assets/{freemarker2-DmbpSxx5.js → freemarker2-CBJnhymu.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-B_i7AN7O.js → ganttDiagram-23REXITY-BAcXXNjI.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-ByODkoVe.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-BMA1YavS.js → gitGraphDiagram-STJD7YCW-Bk9sns6k.js} +1 -1
- package/dist/public/assets/{handlebars-BVNKBeJT.js → handlebars-CiqYW1im.js} +1 -1
- package/dist/public/assets/{html-BHaxuuAl.js → html-kafkm1Z0.js} +1 -1
- package/dist/public/assets/{index-DtU34jhH.js → index-DPLd0-lb.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-BMphWS2h.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-BkNpfsDm.js → infoDiagram-KBXO4MBG-2hRQLVWa.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-xTM6C-Kn.js → ishikawaDiagram-M35NCXHK-hrOnhWJs.js} +1 -1
- package/dist/public/assets/{javascript-C5dXKvxq.js → javascript-Dt5MiA9w.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-C6iaT7vL.js → journeyDiagram-OPLOXDXO-d8HJd04q.js} +1 -1
- package/dist/public/assets/{jsonMode-Ia_aRv-z.js → jsonMode-DBICoo6P.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-MobAdBhz.js → kanban-definition-BZKZHSQY-DOUuZDiv.js} +1 -1
- package/dist/public/assets/{liquid-CIbIBxiN.js → liquid-BGYhBP2h.js} +1 -1
- package/dist/public/assets/{mdx-BqruHcEe.js → mdx-Ct_gzcP3.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-kBQmxOUn.js → mermaid-parser.core-2yhxYNxq.js} +3 -3
- package/dist/public/assets/{mermaid.core-BFkQwIYu.js → mermaid.core-sx7teU8z.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-DxpTmvUG.js → mindmap-definition-I2QAS2VK-DIc9LejH.js} +1 -1
- package/dist/public/assets/module-BX2fJibj.js +1124 -0
- package/dist/public/assets/module-N1D-AOa6.js +1 -0
- package/dist/public/assets/{monaco-BRwac88s.js → monaco-DJecWyyV.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-Ca8klABu.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-B3bIVo4u.js → pegDiagram-FD4XPPHP-BfiT6-Vx.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-B-SN2eCI.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-CgnbwU0I.js → pieDiagram-J4AKIIQI-DJ0sF_Eg.js} +1 -1
- package/dist/public/assets/{python-Cwjb3hEe.js → python-BrnocsK9.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-DWx4wRau.js → quadrantDiagram-XTYBLID2-C3iF5PG6.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-DzDnNRnq.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-7QAv0_1N.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-CyjF4cc_.js → railroad-abnf-LNEFI6M7-BI4N-mtq.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-D2ypsr5c.js → railroad-ebnf-DWYD2UWJ-Ck2MUlyV.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-Cy6Mde1c.js → railroad-peg-JR7BVNR7-Cuc9S0f4.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-B6ya_k_l.js → railroadDiagram-MRQ6NCDL-Cw24sb_5.js} +1 -1
- package/dist/public/assets/{razor-D_ClW9Lh.js → razor-BDHTAmlI.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-Brg8B8VS.js → requirementDiagram-Y7LWUY3S-QQUXFr1R.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-DbzPDfky.js → sankeyDiagram-WGJFYUXA-mSlfAHND.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-BuN84drT.js → sequenceDiagram-5NDRBG5M-3t8hVott.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-C_CTpHMj.js → stateDiagram-v2-FJ4FJNEA-9EW807AL.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-BvD4v9jw.js → swimlanes-UMQ2AFYF-EbMBX_e0.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CIFqDFf2.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-VE2xWGk8.js → timeline-definition-SEUHKTQE-D14kjjsp.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-cznq7PJK.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-CBYUiQGU.js +1 -0
- package/dist/public/assets/{typescript-upeNz2VW.js → typescript-BEEbbq69.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-ZtyyvKye.js → usecaseDiagram-AFA6YXN4-DKemtzU9.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-BTEvzrNd.js → vennDiagram-NNMJR3RB-DOBq9oeY.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-DV8bp8Ml.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-CF8wIUhx.js → wardleyDiagram-S7YFUSEH-DquSJ4y-.js} +1 -1
- package/dist/public/assets/{xml-Cki0HxGb.js → xml-DvTQKQ_W.js} +1 -1
- package/dist/public/assets/xterm-BrP-ENHg.css +1 -0
- package/dist/public/assets/xterm-wtHqjrNn.js +85 -0
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DcDpoJ4n.js → xychartDiagram-GGNKY7IX-ClE_9jz4.js} +1 -1
- package/dist/public/assets/{yaml-YIY66l1U.js → yaml-ffiFfPtJ.js} +1 -1
- package/dist/public/index.html +21 -3
- package/dist/serve/index.mjs +6892 -5061
- package/package.json +22 -18
- package/dist/pi/packages/ta-workspace/lib/util/ansi.d.ts +0 -72
- package/dist/pi/packages/ta-workspace/lib/util/ansi.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/ansi.js +0 -434
- package/dist/pi/packages/ta-workspace/lib/util/ansi.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/keys.d.ts +0 -14
- package/dist/pi/packages/ta-workspace/lib/util/keys.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/keys.js +0 -52
- package/dist/pi/packages/ta-workspace/lib/util/keys.js.map +0 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-D_GZWaFs.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-BHpEyQnS.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-CSv9x0vY.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-Bx2U6fFU.js +0 -1
- package/dist/public/assets/module-C1y_4M09.js +0 -1061
- package/dist/public/assets/module-DYWqfyIP.js +0 -1
- package/dist/public/assets/packet-JDAUHWVQ-Dy7GyfNz.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-B4D2CjUH.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-Dtf3tObc.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-DKGa9xBx.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CMvLg13v.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-ETecwv1j.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-er6ceAYK.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-CzrxsjBc.js +0 -1
package/README.en.md
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Ta
|
|
2
|
+
|
|
3
|
+
A coding agent based on Cell and [pi](https://www.npmjs.com/package/@earendil-works/pi-coding-agent). `ta` is pi renamed to Ta: the interactive interface, `-p`, `--mode json|rpc`, slash commands, the session tree, extensions, skills and pi packages all work as in pi. On top of that:
|
|
4
|
+
|
|
5
|
+
- **Codemode by default**: the model writes JavaScript scripts that call all tools through `codemode`, which can call them in parallel and filter large output within the script; only the script's output enters the context (see "pi Patches" below).
|
|
6
|
+
- **Session lock**: only one Ta process can write to a single session file at any time; pi has no lock, so two processes would interleave writes.
|
|
7
|
+
- **Ta's appearance and identity**: the terminal startup displays Cell's pixel dinosaur, version, and common keys (press the expand key to see all keys; set `quietStartup: true` to hide them); the system prompt, hint text, and MCP client name all refer to Ta. The `/bug` command opens Ta's GitHub issue page in the browser, including version, model, and platform information. The `/share` command, which depends on pi's official service (Radius), has been removed; `/changelog` displays Ta's release notes instead. Pi's version check and installation statistics for pi.dev are disabled by default (`TA_SKIP_VERSION_CHECK=0` or `TA_TELEMETRY=1` to enable). Pi's environment variables in Ta are named `TA_OFFLINE`, `TA_SELF_UPDATE_COMMAND`, and `TA_TELEMETRY`, though the original `PI_*` names still work.
|
|
8
|
+
- **`ta serve`**: provides pi agent sessions over WebSocket to any number of clients (Web, desktop, mobile) and includes a built-in Web client; see [@celljs/ta-host](../../ta-packages/ta-host/README.md) and [@celljs/ta-web](../../ta-packages/ta-web/README.md) for details.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm i -g @celljs/ta # Node.js >= 22.19
|
|
14
|
+
ta # Interactive mode
|
|
15
|
+
ta -p "Summarize this repository" # One-off run
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Correspondence with pi
|
|
19
|
+
|
|
20
|
+
| | pi | Ta |
|
|
21
|
+
| --- | --- | --- |
|
|
22
|
+
| Global directory | `~/.pi/agent/` | `~/.ta/agent/` (auth.json, models.json, settings.json, sessions/, extensions/ …, content format same) |
|
|
23
|
+
| Project directory | `.pi/` | `.ta/`; project description is still `AGENTS.md` |
|
|
24
|
+
| Environment variable | `PI_CODING_AGENT_DIR` | `TA_CODING_AGENT_DIR`, `TA_CODING_AGENT_SESSION_DIR` |
|
|
25
|
+
| Subcommand | `install` `remove` `update` `list` `mcp` | Same, plus `serve`, `exec-server`, `pair`, `relay` |
|
|
26
|
+
|
|
27
|
+
Pi's extensions and pi packages work directly in Ta. Install them with `ta install npm:<package-name>`. To reuse existing `.pi/skills` from your project, add `"skills": ["../.pi/skills"]` to `.ta/settings.json`.
|
|
28
|
+
|
|
29
|
+
When [Cua Driver](https://cua.ai/cua-driver) is installed, Ta can use desktop applications on this machine in the background; see the built-in extension [@celljs/ta-computer-use](../../ta-packages/ta-computer-use/README.md) for details.
|
|
30
|
+
|
|
31
|
+
When a reply changes files, the web client shows them above the message box with the lines added and removed; a click on a file shows its diff in the workbench, and one button takes the changes of that reply back. See the built-in extension [@celljs/ta-changes](../../ta-packages/ta-changes/README.md).
|
|
32
|
+
|
|
33
|
+
Ta works on a schedule too: `/loop 30m <prompt>`, `/remind in 45m <prompt>`, or just say "sum up yesterday's commits every day at 9". The Ta service runs each one in a new conversation at its time, and the Scheduled page of the web client lists the tasks and the summary of each run. See the built-in extension [@celljs/ta-cron](../../ta-packages/ta-cron/README.md).
|
|
34
|
+
|
|
35
|
+
Like pi, Ta does not request approval before tool calls by default; to enable approval requests, install the optional package [@celljs/ta-permission-gate](../../ta-packages/ta-permission-gate/README.md).
|
|
36
|
+
|
|
37
|
+
## ta serve
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
ta serve # 127.0.0.1, last port (switches to free port if occupied)
|
|
41
|
+
ta serve --host 0.0.0.0 --port 4100
|
|
42
|
+
ta serve --web # Start and open Web client in browser (token already included)
|
|
43
|
+
ta serve --exec ws://box:4200/exec # Tools execute on ta exec-server on another machine (TA_EXEC_TOKEN)
|
|
44
|
+
ta exec-server --host 0.0.0.0 --port 4200 --cwd /workspace
|
|
45
|
+
ta pair # Pair phone or other device, connect back via Relay (default https://relay.cellbang.com)
|
|
46
|
+
ta relay --port 8080 # Run your own Relay
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
After startup, Ta writes the address and access token to `~/.ta/agent/serve.json` (mode 0600). The Web client is available at the same address at `/`: the page file contains no data and requires no token; all API calls under `/api` require the token. The `--web` flag places the token in the URL's `#` fragment (not sent to the server or included in the Referer header); the page reads it and stores it in localStorage, then removes it from the address bar. The port and token persist across restarts (stored in `serve-state.json` in the same directory, mode 0600; delete it to get a new token and port), allowing a Web client installed as a PWA to reconnect to ta serve and auto-login on the next visit. When `--port` is specified, that port is used instead. The `TA_SERVE_TOKEN` environment variable can set the token (for example, generated by a desktop shell), in which case it is not recorded. Clients connect using [@celljs/ta-client](../../ta-packages/ta-client/README.md).
|
|
50
|
+
|
|
51
|
+
When the client does not specify a directory, conversations open in ta serve's working directory. The default is the directory where ta serve started; the Web client and desktop app can change it using "Open working directory…", and the selection is stored in `ta.json` in the agent directory. Model services can be signed in through the Web client (gear menu → "Model accounts…"), which writes credentials to the same `auth.json` file as the terminal's `/login` command. Conversations can also run on another machine, like VS Code's Remote SSH: in the directory picker, select a host (a Host from `~/.ssh/config` or `user@host`), and the directory becomes `ssh://<host>/<path>`. The agent and model credentials stay on the ta serve machine; commands, files, terminals, and git run on that remote host. Ta serve uses the system `ssh` to connect (keys, ssh-agent, ProxyJump all work as usual, and the page prompts for passwords or host confirmation when needed). On the first connection, it places a small server (and Node.js 22 if missing) in `~/.ta/server` on that host. Dev servers on that remote host open `localhost` addresses in the built-in browser, and ports are automatically forwarded. See [ta-remote-ssh.md](../../docs/design/ta-remote-ssh.md).
|
|
52
|
+
|
|
53
|
+
Devices paired with `ta pair` connect to ta serve through [Relay](../../ta-packages/ta-relay/README.md) with end-to-end encryption; the Web client's "Use on your phone…" feature does the same and displays a QR code for scanning.
|
|
54
|
+
|
|
55
|
+
## Build
|
|
56
|
+
|
|
57
|
+
`bun run build` first builds ta serve's server using `cell build --root serve`, outputting to `dist/serve/index.mjs`, and builds the Web client to `dist/public/` (the serve application loads `@celljs/ta-web` to build the frontend, and `@celljs/serve-static` hosts it). Then `scripts/assemble.ts` builds the `ta` command (from ta-harness's `TaCli`) to `dist/cli.mjs` and generates `dist/pi/`, which contains a `package.json` that renames pi to Ta (`piConfig`), along with pi's themes, HTML export template, documentation, and examples. When `ta` starts, it lets pi read branding information from this directory (`PI_PACKAGE_DIR`), using the same directory layout as pi's official binary. Built-in pi packages (defined in Ta's `TaPackages.BUILTIN`) are copied to `dist/pi/packages/<name>` after the build without source code or tests; they can be disabled in the Web client's Settings → Packages.
|
|
58
|
+
|
|
59
|
+
Everything `ta` needs at runtime is in `dist/`, so the published package has no `dependencies`, and installing `ta` does not install Cell or pi; the build places all dependencies in `devDependencies`. Ta serve's server is a separate Cell application under `serve/` (private, not included in workspaces). Cell collects components only from `dependencies`; its `serve/package.json` lists which components to include. The `@celljs/ta` package itself does not need `dependencies`. When adding a component to ta serve, add it to both files: components in `serve/package.json`'s `dependencies` determine the output content, and entries in `package.json`'s `devDependencies` determine the turbo build order.
|
|
60
|
+
|
|
61
|
+
The `ta` command itself does not load Cell; its startup time and memory usage match `pi`. Only `ta serve` loads Cell.
|
|
62
|
+
|
|
63
|
+
## pi Patches
|
|
64
|
+
|
|
65
|
+
The following hardcoded brand text in pi, the `/bug` and `/share` built-in commands, and the codemode default are patched:
|
|
66
|
+
|
|
67
|
+
- Patches are stored as `patches/@earendil-works%2Fpi-coding-agent@<version>.patch` in the repo root. They are generated by `bun run pi-patch` (see `scripts/pi-patch.ts` below), registered in the root `package.json`'s `patchedDependencies`, and automatically applied by `bun install`. Patches only modify pi's bundled output `dist/bundle` (what Ta runs).
|
|
68
|
+
- Package manager patches only work in this repository. During the build, `scripts/assemble.ts` copies the patched `dist/bundle` to `dist/pi/dist/bundle` for release (~9 MB). The `ta` command sets `PI_PACKAGE_DIR` to `dist/pi`, and `PiBundleUtil` loads that copy. There is only one pi instance per process; extensions access it through its built-in module table. The build fails directly if the patch is not applied.
|
|
69
|
+
- The bundle loads the following modules from node_modules at runtime: `jiti` (for loading extensions), `@silvia-odwyer/photon-node` (for image resizing), and `quickjs-wasi` (for codemode's WebAssembly). `scripts/assemble.ts` also copies these from pi's side to `dist/pi/node_modules`, using the same versions as pi. Extensions use `typebox` and pi's packages through the bundle's built-in module table. The build scans the bundle for packages loaded by name and fails if any are missing from the required or optional list. When upgrading pi, the script tells you which packages to add.
|
|
70
|
+
|
|
71
|
+
The following table shows what is changed, as defined by `scripts/pi-patch.ts`'s `REPLACEMENTS` (original and replacement per group):
|
|
72
|
+
|
|
73
|
+
| Group | Change |
|
|
74
|
+
| --- | --- |
|
|
75
|
+
| codemode by default | The default tools include `codemode` with `codemode.mode` set to `only`, so the model sees only the `codemode` tool. The tools read, bash, edit, write, extension tools, and MCP tools are called in the script using `tools.<name>()`. Pi has no host default setting layer; this change is only applied here. To revert to pi's behavior, write `"codemode": { "mode": "on" }` in `settings.json` (to provide other tools directly) or `"defaultTools": ["-codemode"]` (to disable codemode), or use `--tools -codemode` for a single run. |
|
|
76
|
+
| built-in commands | The `/share` command (which uploads to Radius) and pi's `/bug` command (for pi developers) are removed. The `/bug` command is provided by Ta's extension instead, and the crash-after `/bug` hint is rewritten. |
|
|
77
|
+
| system prompt | The opening is changed to Ta, and the pi docs section explains how pi's `~/.pi/agent`, `.pi/`, and `pi` command correspond to Ta. |
|
|
78
|
+
| help of ta | In `ta -h`, `ta update -h`, and `ta auth -h`, "pi" is changed to "Ta". Environment variables are listed as `TA_*` (converted to pi's `PI_*` by `TaBrand.activate`). The `PI_PACKAGE_DIR` variable set by Ta and `PI_SHARE_VIEWER_URL` (removed with `/share`) are excluded. MCP service examples change from `radius` to `github`. The commands `ta update ta` and `ta update self` are now equivalent. |
|
|
79
|
+
| update of ta | `ta update` (for self and ta) queries npm for the latest `@celljs/ta`, not pi.dev (which would return the pi package name and replace Ta with pi). It does not prompt to run pi's install script because Ta is a single-file package with no fixed dependencies. |
|
|
80
|
+
| messages | In tmux setup hints, project trust hints, and ChatGPT login port occupied hints, "pi" is changed to "Ta". The MCP client name changes from `pi` to `ta`. |
|
|
81
|
+
|
|
82
|
+
Changes are only made where pi has no setting, parameter, or extension point. If a change can be made using `piConfig`, environment variables (`TaBrand.activate`), or a Ta extension, it is not done in the patch. Do not edit patches manually: pi's bundle is chunked by hash and compressed into long lines, so manual edits will fail after a pi upgrade.
|
|
83
|
+
|
|
84
|
+
To upgrade pi, first change the pi version in `ai-packages/ai-coding-agent` and other places, then run `bun install`. Next, run `bun run pi-patch` in `apps/ta`. The script takes the unpatched pi from the Bun cache and applies replacements line by line according to `REPLACEMENTS` (ignoring filenames; each original must appear the specified number of times in the entire `dist/bundle`). It then generates a new version patch with `bun patch --commit`, removes the `.bun-tag-*` chunk, and deletes the old patch. Finally, remove the old version line from the root `package.json`'s `patchedDependencies` and run `bun run test`. If the original text has changed in the new pi, the script lists the find count and stops; update that line's `from` value and run the script again. Use `bun run pi-patch --check` to verify without generating a patch. `test/pi-patch.spec.ts` also checks the currently installed pi.
|
|
85
|
+
|
|
86
|
+
The following are not changed: pi's documentation body (the system prompt already tells the model how to map it), the Radius login option description (which belongs to pi's official service and is accurate), the settings page's "Pi's drawn cursor" option, and one error message in the package manager (which is buried in a tens of KB long line, so the patch cost exceeds the benefit).
|
|
87
|
+
|
|
88
|
+
## Performance Benchmarks
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
bun run bench # All except long scenarios, ~3 min, outputs Markdown table
|
|
92
|
+
bun run bench streaming # Specify scenario; --help lists all scenarios
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
The benchmarks use the locally built product (run `bun run build` first). The model runs as a standalone process with a fake OpenAI-compatible service (`bench/fake-model.ts`): the `rate` scenario has a first token latency of 200 ms and generates 100 tokens/sec; the `burst` scenario outputs 5000 tokens quickly. The baseline is `pi --mode rpc`: pi serving multiple sessions requires one process per session. Memory and CPU are sampled outside the process using `ps` (on Linux, this reads `/proc`), which does not interfere with the measured process.
|
|
96
|
+
|
|
97
|
+
Reference results from an Apple M4 Pro with Node.js 24:
|
|
98
|
+
|
|
99
|
+
| Scenario | pi | Ta |
|
|
100
|
+
| --- | --- | --- |
|
|
101
|
+
| `--version` / `-p` | 0.12 s 112 MB / 0.18 s 127 MB | 0.12 s 114 MB / 0.19 s 128 MB |
|
|
102
|
+
| ta serve idle | — | 66 MB, idle CPU 0 |
|
|
103
|
+
| 32 sessions | One process per session, ~127 MB × 32 | 181 MB (per session ~1.6 MB) |
|
|
104
|
+
| Single session stream (rate) first token / CPU | 209 ms / 5% | 209 ms / 5–6% |
|
|
105
|
+
| 10 sessions concurrent stream | 1693 MB, 4.57 s CPU | 191 MB, 1.92 s CPU |
|
|
106
|
+
| 50 clients viewing same session | — | Per client ~35 µs per delta |
|
|
107
|
+
|
|
108
|
+
The `endurance` scenario (a long scenario that must be specified explicitly) runs 60 bursts on a 64 MB heap limit and checks that memory converges.
|
|
109
|
+
|
|
110
|
+
## Tests
|
|
111
|
+
|
|
112
|
+
`bun run test` is an integration test that uses the real built product and a local fake OpenAI-compatible model service. It covers print and JSON modes, session locking, installation of pi packages and the permission gate, ta serve's multi-client broadcast, reconnect with resend, approval with first-come-first-served semantics, idempotent acknowledgments, session locking, idle session reclamation, and rate limiting.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Ta
|
|
2
2
|
|
|
3
|
-
基于 Cell 与 [pi](https://www.npmjs.com/package/@earendil-works/pi-coding-agent) 的 coding agent。`ta` 就是改名为 Ta 的 pi:交互界面、`-p`、`--mode json|rpc`、斜杠命令、会话树、扩展、Skills、pi 包都与 pi
|
|
3
|
+
基于 Cell 与 [pi](https://www.npmjs.com/package/@earendil-works/pi-coding-agent) 的 coding agent。`ta` 就是改名为 Ta 的 pi:交互界面、`-p`、`--mode json|rpc`、斜杠命令、会话树、扩展、Skills、pi 包都与 pi 一致;另外多了这些:
|
|
4
4
|
|
|
5
5
|
- **默认用 codemode**:模型通过 `codemode` 写 JavaScript 脚本调用所有工具,可以并行调用、在脚本里过滤大输出,只有脚本的输出进上下文(见下文「pi 补丁」)。
|
|
6
6
|
- **会话锁**:同一个会话文件同时只能被一个 Ta 进程写(pi 没有锁,两个进程会交错写入)。
|
|
@@ -22,10 +22,16 @@ ta -p "总结这个仓库" # 一次性运行
|
|
|
22
22
|
| 全局目录 | `~/.pi/agent/` | `~/.ta/agent/`(auth.json、models.json、settings.json、sessions/、extensions/ …,内容格式相同) |
|
|
23
23
|
| 项目目录 | `.pi/` | `.ta/`;项目说明仍是 `AGENTS.md` |
|
|
24
24
|
| 环境变量 | `PI_CODING_AGENT_DIR` | `TA_CODING_AGENT_DIR`、`TA_CODING_AGENT_SESSION_DIR` |
|
|
25
|
-
| 子命令 | `install` `remove` `update` `list` `mcp` | 相同,另加 `serve`、`exec-server` |
|
|
25
|
+
| 子命令 | `install` `remove` `update` `list` `mcp` | 相同,另加 `serve`、`exec-server`、`pair`、`relay` |
|
|
26
26
|
|
|
27
27
|
pi 的扩展和 pi 包可以直接用:`ta install npm:<包名>`。想复用项目里已有的 `.pi/skills`,在 `.ta/settings.json` 里写 `"skills": ["../.pi/skills"]`。
|
|
28
28
|
|
|
29
|
+
装了 [Cua Driver](https://cua.ai/cua-driver) 时,Ta 能在后台使用这台电脑上的桌面应用,见内置扩展 [@celljs/ta-computer-use](../../ta-packages/ta-computer-use/README.md)。
|
|
30
|
+
|
|
31
|
+
每轮回复改动了文件时,Web 客户端在输入框上方显示改动的文件和增删行数,点文件在工作台查看差异,也可以一键撤销这一轮的改动,见内置扩展 [@celljs/ta-changes](../../ta-packages/ta-changes/README.md)。
|
|
32
|
+
|
|
33
|
+
让 Ta 按时干活:`/loop 30m <要做的事>`、`/remind in 45m <要做的事>`,或者直接说"每天 9 点汇总昨天的提交"。Ta 服务到点在新对话里运行,Web 客户端的"定时任务"页列出任务和每次运行的总结,见内置扩展 [@celljs/ta-cron](../../ta-packages/ta-cron/README.md)。
|
|
34
|
+
|
|
29
35
|
Ta 和 pi 一样,默认不在工具调用前请求批准;需要的话安装可选包 [@celljs/ta-permission-gate](../../ta-packages/ta-permission-gate/README.md)。
|
|
30
36
|
|
|
31
37
|
## ta serve
|
|
@@ -36,10 +42,16 @@ ta serve --host 0.0.0.0 --port 4100
|
|
|
36
42
|
ta serve --web # 同时在浏览器里打开 Web 客户端(已带上 token)
|
|
37
43
|
ta serve --exec ws://box:4200/exec # 工具在另一台机器的 ta exec-server 上执行(TA_EXEC_TOKEN)
|
|
38
44
|
ta exec-server --host 0.0.0.0 --port 4200 --cwd /workspace
|
|
45
|
+
ta pair # 配对手机等设备,经 Relay 连回这台电脑(默认 https://relay.cellbang.com)
|
|
46
|
+
ta relay --port 8080 # 自己运行一个 Relay
|
|
39
47
|
```
|
|
40
48
|
|
|
41
49
|
启动后把地址和访问 token 写进 `~/.ta/agent/serve.json`(权限 0600)。Web 客户端就在同一地址的 `/`:页面文件不含数据,无需 token;调用(`/api`)都要 token。`--web` 把 token 放在 URL 的 `#` 片段里(不会发给服务器,也不进 Referer),页面读到后存进 localStorage 并从地址栏去掉。端口和 token 跨重启保持不变(记在同目录的 `serve-state.json`,权限 0600;删掉它就换新的 token 和端口),这样装成应用(PWA)的 Web 客户端下次打开还能找到 ta serve 并自动登录;`--port` 指定端口时以它为准。`TA_SERVE_TOKEN` 可指定 token(例如由桌面壳生成),这时不记录它。客户端用 [@celljs/ta-client](../../ta-packages/ta-client/README.md) 连接。
|
|
42
50
|
|
|
51
|
+
客户端没指定目录时,对话在 ta serve 的工作目录里打开:默认是启动它的目录,Web 客户端和桌面应用里可以改("打开工作目录…"),记在 agent 目录的 `ta.json`。模型服务可以在 Web 客户端里登录(齿轮菜单的"模型账号…",与终端的 `/login` 写同一个 `auth.json`)。对话也可以在另一台机器上工作,像 VS Code 的 Remote SSH:在目录选择器里选一台主机(`~/.ssh/config` 里的 Host,或 `user@host`),目录就是 `ssh://<host>/<path>`。Agent 和模型凭据留在 ta serve 这台机器,命令、文件、终端、git 在那台主机上;ta serve 用本机的 `ssh` 连过去(密钥、ssh-agent、ProxyJump 照常可用,要密码或确认新主机时页面会弹窗),第一次会把一个很小的服务器(和没有时的 Node.js 22)放到那台主机的 `~/.ta/server`。那台主机上的开发服务器在内置浏览器里打开 `localhost` 地址即可,端口自动转发。见 [ta-remote-ssh.md](../../docs/design/ta-remote-ssh.md)。
|
|
52
|
+
|
|
53
|
+
`ta pair` 配对的设备经 [Relay](../../ta-packages/ta-relay/README.md) 连到 ta serve,内容端到端加密;Web 客户端的"在手机上使用…"做同样的事,并显示二维码。
|
|
54
|
+
|
|
43
55
|
## 构建
|
|
44
56
|
|
|
45
57
|
`bun run build` 先用 `cell build --root serve` 把 ta serve 的服务端打成 `dist/serve/index.mjs`、Web 客户端打成 `dist/public/`(serve 应用装了 `@celljs/ta-web` 就会构建前端,`@celljs/serve-static` 负责托管),再由 `scripts/assemble.ts` 把 `ta` 命令(ta-harness 的 `TaCli`)打成 `dist/cli.mjs`,并生成 `dist/pi/`:一个把 pi 改名为 Ta 的 package.json(`piConfig`),加上 pi 的主题、HTML 导出模板、docs 和 examples。`ta` 启动时让 pi 从这个目录读取品牌信息(`PI_PACKAGE_DIR`),和 pi 官方二进制的目录布局相同。Ta 自带的 pi 包(`TaPackages.BUILTIN`)构建后复制到 `dist/pi/packages/<名字>`,不含源码与测试,可在 Web 客户端的 设置 → 包 关闭。
|
|
@@ -64,6 +76,7 @@ pi 里写死的品牌文字、`/bug` 和 `/share` 两个内置命令,以及 co
|
|
|
64
76
|
| built-in commands | 去掉 `/share`(上传到 Radius)和 pi 的 `/bug`(发给 pi 的开发者);`/bug` 由 Ta 的扩展提供;崩溃后的 `/bug` 提示随之改写 |
|
|
65
77
|
| system prompt | 开头改为 Ta;pi 文档一节说明 pi 的 `~/.pi/agent`、`.pi/`、`pi` 命令在 Ta 里是什么 |
|
|
66
78
|
| help of ta | `ta -h`、`ta update -h`、`ta auth -h` 里的 pi → Ta;环境变量列为 `TA_*`(由 `TaBrand.activate` 转给 pi 的 `PI_*`),去掉 Ta 自己设置的 `PI_PACKAGE_DIR` 和随 `/share` 去掉的 `PI_SHARE_VIEWER_URL`;示例里的 MCP 服务 `radius` 换成 `github`;`ta update ta` 与 `ta update self` 同义 |
|
|
79
|
+
| update of ta | `ta update`(`self`、`ta`)向 npm 查询 `@celljs/ta` 的最新版本,而不是向 pi.dev 查询(那里返回的是 pi 的包名,会把 Ta 换成 pi);不提示运行 pi 的安装脚本(Ta 是单文件打包,没有要固定的依赖) |
|
|
67
80
|
| messages | tmux 设置提示、项目信任提示、ChatGPT 登录端口占用提示:pi → Ta;MCP 客户端名 `pi` → `ta` |
|
|
68
81
|
|
|
69
82
|
只改 pi 没有设置、参数或扩展点可用的地方;能用 `piConfig`、环境变量(`TaBrand.activate`)或 Ta 的扩展做到的,不进补丁。补丁不手改:pi 的打包产物按哈希命名分块、压缩成长行,手改的补丁在 pi 升级后必然失效。
|
package/dist/cli.mjs
CHANGED
|
@@ -889,12 +889,18 @@ var init_exec_rpc = __esm(() => {
|
|
|
889
889
|
STAT: "fs/stat",
|
|
890
890
|
READDIR: "fs/readdir",
|
|
891
891
|
MKDIR: "fs/mkdir",
|
|
892
|
-
REMOVE: "fs/remove"
|
|
892
|
+
REMOVE: "fs/remove",
|
|
893
|
+
NET_CONNECT: "net/connect",
|
|
894
|
+
NET_WRITE: "net/write",
|
|
895
|
+
NET_CLOSE: "net/close"
|
|
893
896
|
};
|
|
897
|
+
ExecRpc2.PING = "ping";
|
|
894
898
|
ExecRpc2.Notification = {
|
|
895
899
|
OUTPUT: "process/output",
|
|
896
900
|
STDERR: "process/stderr",
|
|
897
|
-
EXIT: "process/exit"
|
|
901
|
+
EXIT: "process/exit",
|
|
902
|
+
NET_DATA: "net/data",
|
|
903
|
+
NET_CLOSED: "net/closed"
|
|
898
904
|
};
|
|
899
905
|
ExecRpc2.ErrorCode = {
|
|
900
906
|
STALE_EPOCH: "CELL_TA_EXEC_STALE_EPOCH",
|
|
@@ -920,7 +926,7 @@ var init_exec_rpc = __esm(() => {
|
|
|
920
926
|
|
|
921
927
|
// ../../ta-packages/ta-exec/esm/node/local-exec-environment.js
|
|
922
928
|
import { spawn as spawn2 } from "node:child_process";
|
|
923
|
-
import { mkdir, readdir, readFile, rm, stat, writeFile } from "node:fs/promises";
|
|
929
|
+
import { appendFile, mkdir, readdir, readFile, rm, stat, writeFile } from "node:fs/promises";
|
|
924
930
|
import { resolve } from "node:path";
|
|
925
931
|
|
|
926
932
|
class LocalExecEnvironment {
|
|
@@ -987,8 +993,8 @@ class LocalExecEnvironment {
|
|
|
987
993
|
readFile(path) {
|
|
988
994
|
return readFile(this.resolve(path));
|
|
989
995
|
}
|
|
990
|
-
writeFile(path, data) {
|
|
991
|
-
return writeFile(this.resolve(path), data);
|
|
996
|
+
writeFile(path, data, options = {}) {
|
|
997
|
+
return options.append ? appendFile(this.resolve(path), data) : writeFile(this.resolve(path), data);
|
|
992
998
|
}
|
|
993
999
|
async stat(path) {
|
|
994
1000
|
try {
|
|
@@ -1018,114 +1024,31 @@ class LocalExecEnvironment {
|
|
|
1018
1024
|
if (child.pid === undefined) {
|
|
1019
1025
|
return;
|
|
1020
1026
|
}
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
child.kill();
|
|
1024
|
-
} else {
|
|
1027
|
+
if (process.platform !== "win32") {
|
|
1028
|
+
try {
|
|
1025
1029
|
process.kill(-child.pid, "SIGKILL");
|
|
1026
|
-
|
|
1027
|
-
|
|
1030
|
+
return;
|
|
1031
|
+
} catch (_a) {}
|
|
1032
|
+
}
|
|
1033
|
+
child.kill("SIGKILL");
|
|
1028
1034
|
}
|
|
1029
1035
|
}
|
|
1030
1036
|
var init_local_exec_environment = () => {};
|
|
1031
1037
|
|
|
1032
|
-
// ../../ta-packages/ta-exec/esm/node/exec-
|
|
1033
|
-
|
|
1034
|
-
__export(exports_exec_server, {
|
|
1035
|
-
ExecServer: () => ExecServer,
|
|
1036
|
-
ExecPeer: () => ExecPeer
|
|
1037
|
-
});
|
|
1038
|
-
import { timingSafeEqual as timingSafeEqual2 } from "node:crypto";
|
|
1039
|
-
import { createServer as createServer3 } from "node:http";
|
|
1040
|
-
|
|
1041
|
-
class ExecServer {
|
|
1042
|
-
constructor(options) {
|
|
1043
|
-
this.options = options;
|
|
1044
|
-
this.epoch = 0;
|
|
1045
|
-
this.peers = new Set;
|
|
1046
|
-
}
|
|
1047
|
-
get cwd() {
|
|
1048
|
-
var _a;
|
|
1049
|
-
return (_a = this.options.cwd) !== null && _a !== undefined ? _a : process.cwd();
|
|
1050
|
-
}
|
|
1051
|
-
async listen() {
|
|
1052
|
-
var _a;
|
|
1053
|
-
const server = createServer3((_request, response) => response.writeHead(404).end());
|
|
1054
|
-
server.on("upgrade", (request, socket, head) => this.upgrade(request, socket, head));
|
|
1055
|
-
this.server = server;
|
|
1056
|
-
await new Promise((resolve2) => {
|
|
1057
|
-
var _a2, _b;
|
|
1058
|
-
return server.listen((_a2 = this.options.port) !== null && _a2 !== undefined ? _a2 : 0, (_b = this.options.host) !== null && _b !== undefined ? _b : "127.0.0.1", resolve2);
|
|
1059
|
-
});
|
|
1060
|
-
const { port } = server.address();
|
|
1061
|
-
return `ws://${(_a = this.options.host) !== null && _a !== undefined ? _a : "127.0.0.1"}:${port}${ExecRpc.PATH}`;
|
|
1062
|
-
}
|
|
1063
|
-
async close() {
|
|
1064
|
-
for (const peer2 of this.peers) {
|
|
1065
|
-
peer2.close(1001, "The server stops.");
|
|
1066
|
-
}
|
|
1067
|
-
await new Promise((resolve2) => this.server ? this.server.close(() => resolve2()) : resolve2());
|
|
1068
|
-
}
|
|
1069
|
-
admit(peer2, epoch) {
|
|
1070
|
-
if (epoch < this.epoch) {
|
|
1071
|
-
return false;
|
|
1072
|
-
}
|
|
1073
|
-
if (epoch > this.epoch) {
|
|
1074
|
-
this.epoch = epoch;
|
|
1075
|
-
for (const other of this.peers) {
|
|
1076
|
-
if (other !== peer2 && other.epoch !== undefined && other.epoch < epoch) {
|
|
1077
|
-
other.close(4001, "A host with a newer epoch connected.");
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
return true;
|
|
1082
|
-
}
|
|
1083
|
-
isCurrent(epoch) {
|
|
1084
|
-
return epoch === this.epoch;
|
|
1085
|
-
}
|
|
1086
|
-
upgrade(request, socket, head) {
|
|
1087
|
-
var _a, _b;
|
|
1088
|
-
const url = new URL((_a = request.url) !== null && _a !== undefined ? _a : "/", "http://localhost");
|
|
1089
|
-
if (url.pathname !== ExecRpc.PATH) {
|
|
1090
|
-
WebSocketConnection.refuse(socket, 404, "Not found.");
|
|
1091
|
-
return;
|
|
1092
|
-
}
|
|
1093
|
-
const checked = WebSocketConnection.check(request);
|
|
1094
|
-
if ("status" in checked) {
|
|
1095
|
-
WebSocketConnection.refuse(socket, checked.status, checked.message);
|
|
1096
|
-
return;
|
|
1097
|
-
}
|
|
1098
|
-
const header = request.headers.authorization;
|
|
1099
|
-
const token = (header === null || header === undefined ? undefined : header.startsWith("Bearer ")) ? header.slice("Bearer ".length) : url.searchParams.get("token");
|
|
1100
|
-
if (!token || !this.matches(token)) {
|
|
1101
|
-
WebSocketConnection.refuse(socket, 401, "Not authorized.");
|
|
1102
|
-
return;
|
|
1103
|
-
}
|
|
1104
|
-
const connection = WebSocketConnection.open(socket, checked.key, head, { maxPayload: (_b = this.options.maxPayload) !== null && _b !== undefined ? _b : 67108864, heartbeat: 30000 });
|
|
1105
|
-
const peer2 = new ExecPeer(this, connection);
|
|
1106
|
-
this.peers.add(peer2);
|
|
1107
|
-
connection.onClose(() => {
|
|
1108
|
-
this.peers.delete(peer2);
|
|
1109
|
-
peer2.dispose();
|
|
1110
|
-
});
|
|
1111
|
-
}
|
|
1112
|
-
matches(token) {
|
|
1113
|
-
const [left, right] = [Buffer.from(token), Buffer.from(this.options.token)];
|
|
1114
|
-
return left.length === right.length && timingSafeEqual2(left, right);
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1038
|
+
// ../../ta-packages/ta-exec/esm/node/exec-peer.js
|
|
1039
|
+
import { connect } from "node:net";
|
|
1117
1040
|
|
|
1118
1041
|
class ExecPeer {
|
|
1119
|
-
constructor(server,
|
|
1042
|
+
constructor(server, channel) {
|
|
1120
1043
|
this.server = server;
|
|
1121
|
-
this.
|
|
1044
|
+
this.channel = channel;
|
|
1122
1045
|
this.running = new Map;
|
|
1123
1046
|
this.spawned = new Map;
|
|
1124
|
-
|
|
1047
|
+
this.sockets = new Map;
|
|
1125
1048
|
}
|
|
1126
1049
|
close(code, reason) {
|
|
1127
1050
|
this.dispose();
|
|
1128
|
-
this.
|
|
1051
|
+
this.channel.close(code, reason);
|
|
1129
1052
|
}
|
|
1130
1053
|
dispose() {
|
|
1131
1054
|
for (const controller of this.running.values()) {
|
|
@@ -1134,8 +1057,12 @@ class ExecPeer {
|
|
|
1134
1057
|
for (const child of this.spawned.values()) {
|
|
1135
1058
|
child.kill();
|
|
1136
1059
|
}
|
|
1060
|
+
for (const socket of this.sockets.values()) {
|
|
1061
|
+
socket.destroy();
|
|
1062
|
+
}
|
|
1137
1063
|
this.running.clear();
|
|
1138
1064
|
this.spawned.clear();
|
|
1065
|
+
this.sockets.clear();
|
|
1139
1066
|
}
|
|
1140
1067
|
async receive(text) {
|
|
1141
1068
|
var _a;
|
|
@@ -1143,10 +1070,13 @@ class ExecPeer {
|
|
|
1143
1070
|
try {
|
|
1144
1071
|
message = JSON.parse(text);
|
|
1145
1072
|
} catch (_b) {
|
|
1146
|
-
this.
|
|
1073
|
+
this.close(1007, "Not JSON.");
|
|
1147
1074
|
return;
|
|
1148
1075
|
}
|
|
1149
1076
|
const { id: id2, method, params } = message;
|
|
1077
|
+
if (method === ExecRpc.PING) {
|
|
1078
|
+
return;
|
|
1079
|
+
}
|
|
1150
1080
|
let reply;
|
|
1151
1081
|
if (method === ExecRpc.Method.INITIALIZE) {
|
|
1152
1082
|
reply = this.initialize(id2, params);
|
|
@@ -1174,9 +1104,9 @@ class ExecPeer {
|
|
|
1174
1104
|
return { jsonrpc: "2.0", id: id2, result };
|
|
1175
1105
|
}
|
|
1176
1106
|
async call(method, params) {
|
|
1177
|
-
var _a, _b, _c;
|
|
1178
|
-
var
|
|
1179
|
-
const environment = new LocalExecEnvironment((
|
|
1107
|
+
var _a, _b, _c, _d, _e;
|
|
1108
|
+
var _f;
|
|
1109
|
+
const environment = new LocalExecEnvironment((_f = params.root) !== null && _f !== undefined ? _f : this.server.cwd);
|
|
1180
1110
|
switch (method) {
|
|
1181
1111
|
case ExecRpc.Method.EXEC:
|
|
1182
1112
|
return this.exec(environment, params);
|
|
@@ -1192,7 +1122,7 @@ class ExecPeer {
|
|
|
1192
1122
|
case ExecRpc.Method.READ_FILE:
|
|
1193
1123
|
return ExecRpc.toBase64(await environment.readFile(params.path));
|
|
1194
1124
|
case ExecRpc.Method.WRITE_FILE:
|
|
1195
|
-
return environment.writeFile(params.path, ExecRpc.fromBase64(params.data));
|
|
1125
|
+
return environment.writeFile(params.path, ExecRpc.fromBase64(params.data), { append: params.append === true });
|
|
1196
1126
|
case ExecRpc.Method.STAT:
|
|
1197
1127
|
return environment.stat(params.path);
|
|
1198
1128
|
case ExecRpc.Method.READDIR:
|
|
@@ -1201,6 +1131,14 @@ class ExecPeer {
|
|
|
1201
1131
|
return environment.mkdir(params.path);
|
|
1202
1132
|
case ExecRpc.Method.REMOVE:
|
|
1203
1133
|
return environment.remove(params.path, { recursive: params.recursive });
|
|
1134
|
+
case ExecRpc.Method.NET_CONNECT:
|
|
1135
|
+
return this.connect(params);
|
|
1136
|
+
case ExecRpc.Method.NET_WRITE:
|
|
1137
|
+
(_d = this.sockets.get(params.id)) === null || _d === undefined || _d.write(ExecRpc.fromBase64(params.data));
|
|
1138
|
+
return;
|
|
1139
|
+
case ExecRpc.Method.NET_CLOSE:
|
|
1140
|
+
(_e = this.sockets.get(params.id)) === null || _e === undefined || _e.end();
|
|
1141
|
+
return;
|
|
1204
1142
|
default:
|
|
1205
1143
|
throw new Error(`No method ${method}.`);
|
|
1206
1144
|
}
|
|
@@ -1230,17 +1168,124 @@ class ExecPeer {
|
|
|
1230
1168
|
this.notify(ExecRpc.Notification.EXIT, { id: params.id, exitCode });
|
|
1231
1169
|
});
|
|
1232
1170
|
}
|
|
1171
|
+
connect(params) {
|
|
1172
|
+
return new Promise((resolve2, reject) => {
|
|
1173
|
+
var _a;
|
|
1174
|
+
const socket = connect({ port: params.port, host: (_a = params.host) !== null && _a !== undefined ? _a : "127.0.0.1" });
|
|
1175
|
+
socket.once("connect", () => {
|
|
1176
|
+
this.sockets.set(params.id, socket);
|
|
1177
|
+
resolve2();
|
|
1178
|
+
});
|
|
1179
|
+
socket.on("data", (data) => this.notify(ExecRpc.Notification.NET_DATA, { id: params.id, data: ExecRpc.toBase64(data) }));
|
|
1180
|
+
socket.once("error", reject);
|
|
1181
|
+
socket.once("close", () => {
|
|
1182
|
+
if (this.sockets.delete(params.id)) {
|
|
1183
|
+
this.notify(ExecRpc.Notification.NET_CLOSED, { id: params.id });
|
|
1184
|
+
}
|
|
1185
|
+
});
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1233
1188
|
notify(method, params) {
|
|
1234
1189
|
this.send({ jsonrpc: "2.0", method, params });
|
|
1235
1190
|
}
|
|
1236
1191
|
send(message) {
|
|
1237
|
-
this.
|
|
1192
|
+
this.channel.send(JSON.stringify(message));
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
var init_exec_peer = __esm(() => {
|
|
1196
|
+
init_exec_rpc();
|
|
1197
|
+
init_local_exec_environment();
|
|
1198
|
+
});
|
|
1199
|
+
|
|
1200
|
+
// ../../ta-packages/ta-exec/esm/node/exec-server.js
|
|
1201
|
+
var exports_exec_server = {};
|
|
1202
|
+
__export(exports_exec_server, {
|
|
1203
|
+
ExecServer: () => ExecServer
|
|
1204
|
+
});
|
|
1205
|
+
import { timingSafeEqual as timingSafeEqual2 } from "node:crypto";
|
|
1206
|
+
import { createServer as createServer3 } from "node:http";
|
|
1207
|
+
|
|
1208
|
+
class ExecServer {
|
|
1209
|
+
constructor(options) {
|
|
1210
|
+
this.options = options;
|
|
1211
|
+
this.epoch = 0;
|
|
1212
|
+
this.peers = new Set;
|
|
1213
|
+
}
|
|
1214
|
+
get cwd() {
|
|
1215
|
+
var _a;
|
|
1216
|
+
return (_a = this.options.cwd) !== null && _a !== undefined ? _a : process.cwd();
|
|
1217
|
+
}
|
|
1218
|
+
async listen() {
|
|
1219
|
+
var _a;
|
|
1220
|
+
const server = createServer3((_request, response) => response.writeHead(404).end());
|
|
1221
|
+
server.on("upgrade", (request, socket, head) => this.upgrade(request, socket, head));
|
|
1222
|
+
this.server = server;
|
|
1223
|
+
await new Promise((resolve2) => {
|
|
1224
|
+
var _a2, _b;
|
|
1225
|
+
return server.listen((_a2 = this.options.port) !== null && _a2 !== undefined ? _a2 : 0, (_b = this.options.host) !== null && _b !== undefined ? _b : "127.0.0.1", resolve2);
|
|
1226
|
+
});
|
|
1227
|
+
const { port } = server.address();
|
|
1228
|
+
return `ws://${(_a = this.options.host) !== null && _a !== undefined ? _a : "127.0.0.1"}:${port}${ExecRpc.PATH}`;
|
|
1229
|
+
}
|
|
1230
|
+
async close() {
|
|
1231
|
+
for (const peer2 of this.peers) {
|
|
1232
|
+
peer2.close(1001, "The server stops.");
|
|
1233
|
+
}
|
|
1234
|
+
await new Promise((resolve2) => this.server ? this.server.close(() => resolve2()) : resolve2());
|
|
1235
|
+
}
|
|
1236
|
+
admit(peer2, epoch) {
|
|
1237
|
+
if (epoch < this.epoch) {
|
|
1238
|
+
return false;
|
|
1239
|
+
}
|
|
1240
|
+
if (epoch > this.epoch) {
|
|
1241
|
+
this.epoch = epoch;
|
|
1242
|
+
for (const other of this.peers) {
|
|
1243
|
+
if (other !== peer2 && other.epoch !== undefined && other.epoch < epoch) {
|
|
1244
|
+
other.close(4001, "A host with a newer epoch connected.");
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
return true;
|
|
1249
|
+
}
|
|
1250
|
+
isCurrent(epoch) {
|
|
1251
|
+
return epoch === this.epoch;
|
|
1252
|
+
}
|
|
1253
|
+
upgrade(request, socket, head) {
|
|
1254
|
+
var _a, _b;
|
|
1255
|
+
const url = new URL((_a = request.url) !== null && _a !== undefined ? _a : "/", "http://localhost");
|
|
1256
|
+
if (url.pathname !== ExecRpc.PATH) {
|
|
1257
|
+
WebSocketConnection.refuse(socket, 404, "Not found.");
|
|
1258
|
+
return;
|
|
1259
|
+
}
|
|
1260
|
+
const checked = WebSocketConnection.check(request);
|
|
1261
|
+
if ("status" in checked) {
|
|
1262
|
+
WebSocketConnection.refuse(socket, checked.status, checked.message);
|
|
1263
|
+
return;
|
|
1264
|
+
}
|
|
1265
|
+
const header = request.headers.authorization;
|
|
1266
|
+
const token = (header === null || header === undefined ? undefined : header.startsWith("Bearer ")) ? header.slice("Bearer ".length) : url.searchParams.get("token");
|
|
1267
|
+
if (!token || !this.matches(token)) {
|
|
1268
|
+
WebSocketConnection.refuse(socket, 401, "Not authorized.");
|
|
1269
|
+
return;
|
|
1270
|
+
}
|
|
1271
|
+
const connection = WebSocketConnection.open(socket, checked.key, head, { maxPayload: (_b = this.options.maxPayload) !== null && _b !== undefined ? _b : 67108864, heartbeat: 30000 });
|
|
1272
|
+
const peer2 = new ExecPeer(this, { send: (text) => connection.send(text), close: (code, reason) => connection.close(code, reason) });
|
|
1273
|
+
connection.onMessage((text) => void peer2.receive(text));
|
|
1274
|
+
this.peers.add(peer2);
|
|
1275
|
+
connection.onClose(() => {
|
|
1276
|
+
this.peers.delete(peer2);
|
|
1277
|
+
peer2.dispose();
|
|
1278
|
+
});
|
|
1279
|
+
}
|
|
1280
|
+
matches(token) {
|
|
1281
|
+
const [left, right] = [Buffer.from(token), Buffer.from(this.options.token)];
|
|
1282
|
+
return left.length === right.length && timingSafeEqual2(left, right);
|
|
1238
1283
|
}
|
|
1239
1284
|
}
|
|
1240
1285
|
var init_exec_server = __esm(() => {
|
|
1241
1286
|
init_websocket_connection();
|
|
1287
|
+
init_exec_peer();
|
|
1242
1288
|
init_exec_rpc();
|
|
1243
|
-
init_local_exec_environment();
|
|
1244
1289
|
});
|
|
1245
1290
|
|
|
1246
1291
|
// ../../ta-packages/ta-harness/esm/node/ta-cli.js
|
|
@@ -1318,6 +1363,12 @@ var BugReport;
|
|
|
1318
1363
|
child.unref();
|
|
1319
1364
|
}
|
|
1320
1365
|
BugReport2.open = open;
|
|
1366
|
+
function notice(url, env = process.env) {
|
|
1367
|
+
return /^zh/i.test(env.TA_LANGUAGE || env.LC_ALL || env.LANG || "") ? `一个新的 Ta 问题(只带版本、模型和平台信息)会在浏览器里打开。如果没有打开:
|
|
1368
|
+
${url}` : `A new issue for Ta, with its version, the model and the platform and nothing else, opens in the browser. If it did not:
|
|
1369
|
+
${url}`;
|
|
1370
|
+
}
|
|
1371
|
+
BugReport2.notice = notice;
|
|
1321
1372
|
})(BugReport || (BugReport = {}));
|
|
1322
1373
|
|
|
1323
1374
|
// ../../ta-packages/ta-harness/esm/node/dino-logo.js
|
|
@@ -1529,8 +1580,7 @@ class BrandExtension {
|
|
|
1529
1580
|
if (ctx.mode === "tui") {
|
|
1530
1581
|
BugReport.open(url);
|
|
1531
1582
|
}
|
|
1532
|
-
ctx.ui.notify(
|
|
1533
|
-
${url}`, "info");
|
|
1583
|
+
ctx.ui.notify(BugReport.notice(url), "info");
|
|
1534
1584
|
}
|
|
1535
1585
|
});
|
|
1536
1586
|
}
|
|
@@ -1781,7 +1831,15 @@ var __dirname3 = __cellDirname2(__filename3);
|
|
|
1781
1831
|
var PACKAGE_COMMANDS = new Set(["install", "remove", "uninstall", "update", "list", "config"]);
|
|
1782
1832
|
var TaPackages;
|
|
1783
1833
|
(function(TaPackages2) {
|
|
1784
|
-
TaPackages2.BUILTIN = [
|
|
1834
|
+
TaPackages2.BUILTIN = [
|
|
1835
|
+
"@celljs/ta-workspace",
|
|
1836
|
+
"@celljs/ta-channels",
|
|
1837
|
+
"@celljs/ta-extensions",
|
|
1838
|
+
"@celljs/ta-computer-use",
|
|
1839
|
+
"@celljs/ta-changes",
|
|
1840
|
+
"@celljs/ta-cron",
|
|
1841
|
+
"@celljs/ta-agents"
|
|
1842
|
+
];
|
|
1785
1843
|
TaPackages2.SETTINGS_FILE = "ta.json";
|
|
1786
1844
|
function builtins(packageDir = process.env.PI_PACKAGE_DIR) {
|
|
1787
1845
|
const dir = packageDir ? join4(packageDir, "packages") : undefined;
|
package/dist/pi/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @celljs/ta
|
|
2
2
|
|
|
3
|
+
## 4.8.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a606a27: 新增 Ta 内置扩展 `@celljs/ta-agents`:把 CodeBuddy Code、Claude Code、Codex 等 coding agent 当作模型来选,经 Agent Client Protocol(stdio)接入。选了 Agent 的对话每一轮都在它自己的 harness 上完成,工具调用显示成 Ta 的工具行(`agent_tool`),会话随对话保存并在重新打开时恢复,后台任务结束后 Agent 自己开始的一轮也会显示。pi 的 `settings.json` 里用 `agents` 关掉或改动内置的 Agent、加入其他 ACP Agent。Ta Web 的工具行支持 `agent_tool`,没有动词的工具显示工具自己的名字。
|
|
8
|
+
- 8ad6b8a: Ta Web 的"N 个文件已更改"固定在输入框上方,显示对话里最近一轮改动了文件的回复,点开的文件列表在它上方弹出(点外面或按 Esc 收起),撤销后消失;不再在每轮回复下方各放一个。
|
|
9
|
+
- b869cf7: 选了别的 coding agent(CodeBuddy Code、Claude Code、Codex)的对话里,Agent 用自己的编辑工具改的文件也会出现在输入框上方的"N 个文件已更改"里,能看差异、能撤销。ta-agents 一知道某次调用要改哪个文件,就经 pi.events 发新的 `ta:file-write` 事件(ta-protocol 的 `TA_FILE_WRITE_EVENT`),Agent 给出 diff 时带上改动前的文本;ta-changes 据此在 Agent 动手前留下文件原样。
|
|
10
|
+
- 4b2b700: 新增内置扩展 @celljs/ta-changes:Ta Web 在每轮改动了文件的回复下方显示"N 个文件已更改 +增 −删",点开列出改动的文件和各自的增删行数,点文件在工作台查看改动前后的差异;"撤销本轮改动"把文件恢复成这轮回复之前的样子(Ta 新建的文件会删除),文件之后又被改过时先确认,撤销后告诉 Ta 文件已恢复。记录 edit、write 工具(包括 codemode 脚本里的调用)写的文件,远程目录同样适用。包的 pi 扩展向宿主取句柄时(TA_HOST_EVENT),应答新增 `files`:这个会话执行环境里的文件。
|
|
11
|
+
- ab6dd3c: 新增内置扩展 @celljs/ta-cron:定时任务。`/loop 30m <要做的事>`、`/loop "0 9 * * 1-5" …`、`/remind in 45m …` 和 `/schedule` 管理任务,Ta 也能用工具 `schedule_task` 按你说的建任务;到点后 Ta 服务在新对话里运行(一次运行一个对话,跑完关闭,对话文件保留),Web 客户端新增"定时任务"页列出任务、下次运行和每次运行的总结,运行结束时按任务的通知级别提示。重复任务错过的时间在服务启动后合并补跑一次,一次性任务晚了 5 分钟以上记为错过。包的服务端(TaExtensionHost)新增 `closeSession` 和 `abort`;Web 扩展的图标新增 AlarmClock、Play。
|
|
12
|
+
- 7456b57: Ta Web 的资源管理器支持上传和下载:右键菜单有"上传文件…""上传文件夹…""下载"(文件夹在页面里打包成 zip),系统里的文件或文件夹可以直接拖进树里上传,同名时先询问是否替换,底部显示进度。拖动文件或文件夹到另一个文件夹即移动(悬停在关着的文件夹上会展开,不能移进自身),也可以拖到对话输入框成为 `@` 引用、拖到终端输入它的路径(按 shell 规则加引号)。在 Ta 桌面版里,本机目录的项可以"在 Finder 中显示"(Windows 上是"在文件资源管理器中显示",Linux 上是"打开所在的文件夹")。
|
|
13
|
+
|
|
14
|
+
新增 `TaWorkspaceServer.uploadFile`(字节以 base64 分块写入,自动建目录)与 `ExecEnvironment.writeFile` 的 `append` 选项;Web 扩展 API 新增 `pi.ui.fileDrag`(在视图之间拖动文件)和 `pi.ui.desktop`(桌面版的系统文件管理器)。
|
|
15
|
+
- b0cfb66: 修复 Ta Web 里扩展命令(如 `/bug`、`/mcp`、`/computer-use`)发送后没有反应:pi 绑定扩展时会复制一份界面上下文(`{ ...ui }`),只留下自身属性,Ta 服务给的界面上下文的方法都在原型上,于是 `ctx.ui.notify`、`setStatus`、`setWidget` 等全部丢失,命令一调用就报错。现在这些方法挂在对象自身上。扩展或命令出错时,页面也会弹出错误提示,不再悄无声息。
|
|
16
|
+
- c856418: 修复 Ta 桌面版终端的字小得看不清、字距很大:xterm.js 的 WebGL 渲染器设置画布字体时字符串以空格开头,Chromium 156(Electron 45)会拒绝这样的字体并退回 10px sans-serif,现在设置前去掉开头空格。修复先开过远程主机终端后本机终端报 `script: illegal option -- f`(或反过来远程终端乱码):shell 与系统的探测结果按机器分别缓存,不再全局共用一份。页面刷新或重连后,终端会重放最近的输出,不再只剩一个光标。终端在有尺寸后才初始化,装好 WebGL 渲染器后再按容器适配行列;后台窗口里也能打开。Shift+Enter 按 kitty 键盘协议发送,在终端里运行 ta 时是换行而不是发送。
|
|
17
|
+
- b17505c: 修复 Ta Web 终端在远程主机(Remote SSH)上输不了中文、显示成 `<ffffffff>`:经 ssh 或桌面应用启动的 shell 常常没有 locale,按 C 解读多字节字符。终端启动时若 locale 不是 UTF-8,为 shell 的字符设置 UTF-8(LC_CTYPE,设了 LC_ALL 时也改它):系统有 C.UTF-8 就用它,否则用 en_US.UTF-8;消息语言和格式不变。
|
|
18
|
+
- 32a4b95: Ta Web 终端里的链接可以打开了,照 VS Code:http(s) 和 file 链接、文件路径(`src/a.ts:10:5`、`src/a.ts(10,5)`、`./docs/`、`/etc/hosts`,以及带常见扩展名的文件名)悬停时显示下划线和提示,Cmd 或 Ctrl + 点击打开:文件在工作台打开并定位到行列,目录在资源管理器里显示,网页在工作台的浏览器里打开,加按 Shift 在系统浏览器打开(与对话里的链接同一套确认与可信域名)。相对路径按 shell 用 OSC 7 报告的当前目录解析,没有报告时用终端打开时的目录;折行的长路径和中文混排都能对上位置。`ui.createTerminal` 新增 `cwd`。
|
|
19
|
+
- 8a7925b: Ta Web 照顾为 pi 终端写的扩展界面:
|
|
20
|
+
- 扩展用字符画的二维码(如微信桥登录时的 `qrcode-terminal` 输出,半块字符或黑白底色两种画法)在提示里画成可扫描的黑白二维码,提示一直保留,直到这个会话的下一条提示(登录结果或新的二维码)出现时才替换掉。
|
|
21
|
+
- 状态栏(`setStatus`)按"标签 + 分段"显示成胶囊:`[微信] ⏳ 登录中...` 显示为"微信 · 登录中...",⏳ ✅ ❌ 这类符号换成颜色圆点,`|` 分隔的各段之间用细竖线隔开。
|
|
22
|
+
- 扩展用 `setWidget` 给出的文字行显示在输入框上方或下方;`setEditorText` 的文字会填进输入框。
|
|
23
|
+
- 扩展文本里的终端转义(颜色、链接等)一律去掉后再显示,对话框里的标题、选项、提示也一样。
|
|
24
|
+
- 状态和 widget 由 Ta 服务记住,刷新页面或稍后才打开会话时也能看到当前状态。
|
|
25
|
+
- 47a3445: Ta Web 的终端换成 VS Code 的终端(xterm.js),用 WebGL(GPU)绘制,浏览器没有 WebGL 时退回 DOM;颜色取页面的背景与文字,其余用 VS Code 的终端配色,切换主题时立即跟随。ta、vim 这类全屏程序、滚动(滚轮交给要鼠标的程序)、改尺寸后的重排、中文与 emoji 宽度都按真正的终端处理;终端在首次打开时才加载。修复 shell 刚启动时窗口尺寸没传到伪终端:在 shell 报出终端名之前的尺寸会记下,报出后补上,此前程序一直按 100×30 绘制,与页面对不上。Web 扩展 API 新增 `ui.createTerminal`。
|
|
26
|
+
|
|
27
|
+
## 4.7.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- 017469e: 新增内置扩展 @celljs/ta-computer-use:Ta 经 Cua Driver(https://cua.ai/cua-driver)在后台使用这台电脑上的桌面应用。Ta Desktop 自带 Cua Driver,终端里的 Ta 使用用户自己装的那份。Cua Driver 只在第一次有脚本用到它的工具时才启动,不用它的会话没有额外进程;第一次使用时检查系统要求:macOS 上缺辅助功能或屏幕录制授权时,会提示用户、打开对应设置,等授权完成后继续执行这次调用;Linux 和 Windows 上会说明缺少的桌面会话、AT-SPI 或系统库。`/computer-use` 显示用的是哪个程序和系统还缺什么。
|
|
32
|
+
- d0f78b8: Ta works in directories of other machines, as VS Code's Remote SSH does: a directory `ssh://<host>/<path>` (`TaLocation`) runs its commands, files, terminals and git on that host, through the `ssh` of the machine of `ta serve` and its configuration, while the agent and the credentials of the models stay there. The first connection copies a small `ta exec-server` to `~/.ta/server` of the host, with Node.js 22 when it has no Node.js 18 or later (downloaded and checked on this machine). What ssh asks (a password, a new host key) is asked in the pages (`TaRemoteServer`); the folder picker lists the hosts of `~/.ssh/config`; the built-in browser opens the dev servers of the host through forwarded ports (`forwardPort`, `ExecEnvironment.connect`). `ta exec-server` also runs on stdio (`ExecStdio`), and `ExecClient` takes any transport (`ExecClient.webSocket(url, token)`). New settings: `ta.remote.ssh`, `ta.remote.sshArgs`, `ta.remote.nodeMirror`.
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- 3791c3b: 文档:前端指南补上 `useLocale` 与可选的 react-intl;Ta 的 README 补上登录模型服务(`TaAuthServer`)、ta serve 的工作目录、经 Relay 配对设备(`TaRelayServer`、`ta pair` 默认 Relay)和 `ta update` 的行为。文档站新增 Ta 一节,收录 `ta` 命令、桌面与手机应用和每个 Ta 包的页面。
|
|
37
|
+
- 97da2f9: The page of the Ta service has the user's theme from its first frame: it reads the setting this browser keeps before the scripts load, instead of a white page until they do. The desktop app keeps the web client's theme for its next start, so its loading page and its first-start page are in that theme too.
|
|
38
|
+
|
|
3
39
|
## 4.6.1
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|